package com.hxzy.shop.commodity.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hxzy.shop.commodity.dto.req.ActivityReq;
import com.hxzy.shop.commodity.dto.req.CommodityPage;
import com.hxzy.shop.commodity.dto.req.RenewAdminClassifiedManagementReq;
import com.hxzy.shop.commodity.dto.resp.*;
import com.hxzy.shop.common.dto.commodity.req.ClassificationsReq;
import com.hxzy.shop.entity.ClassifiedManagement;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ClassifiedManagementMapper extends BaseMapper<ClassifiedManagement> {

    /**
     * 查询
     * @param req
     * @param merchantId
     * @return
     */
    List<ClassifiedManagement> getClassifiedPage(@Param(value = "req") ClassificationsReq req, @Param(value = "merchantId") Long merchantId);

    /**
     * 根据id 查询一级和二级
     *
     * @param id 药品id
     * @return 获得药品的分类
     */
     ClassResp getClassifiedBigAndSmall(Long id);

    /**
     * 获得分类列表
     *
     * @return 分类返回体集合
     */
    //List<ClassifiedResp> getStoreClassifiedList();

   // List<SonClassifiedResp> getSonClassified(@Param("parentId")Long parentId);
    /**
     * 分类药品列表
     *
     * @param activityReq --
     * @return --
     */
    //List<ActivityDrugResp>  getClassifiedDrugPage(ActivityReq activityReq);

    /**
     * @Description: 批量新增
     * @Param:
     * @Return:
     * @Author: hu-yf
     * @Date: 2022/4/6
     **/
    //void saveAll(@Param("list") List<ClassifiedManagement> backstage);

    /**
     * @Description: 中台修改同步
     * @Param:
     * @Return:
     * @Author: hu-yf
     * @Date: 2022/4/6
     **/
   // void updateByAdminClassifiedManagementId(@Param("req") RenewAdminClassifiedManagementReq req,@Param("merchantId")String merchantId);

    /**
     * @Description: 查询多药品分类
     * @Param:
     * @Return:
     * @Author: hu-yf
     * @Date: 2022/6/7 15:41
     **/
    //List<DrugsClassifiedManagementResp> getDrugsAll(@Param("drugIds") List<Long> drugIds);


    /**
     * 获取分类列表 包含药品数量
     *
     * */

    //List<ClassifiedManagementResp> getClassifiedManagement();
}
